#ifndef SYSTEMTRAYINTERFACE_H
#define SYSTEMTRAYINTERFACE_H

#include <QObject>
#include <QSystemTrayIcon>
class QMenu;

class SystemTrayInterface : public QObject
{
    Q_OBJECT
public:
    SystemTrayInterface(const QIcon &icon, QObject *parent);
    virtual ~SystemTrayInterface();

    virtual void setIcon(const QIcon &icon) = 0;
    virtual void setContextMenu(QMenu *menu) = 0;
    virtual void setVisible(bool visiable) = 0;

    virtual void startBlink() = 0;
    virtual void stopBink() = 0;
signals:
    void activated(QSystemTrayIcon::ActivationReason reason);
    void enter(QPoint p);
    void leave();
};

#endif // SYSTEMTRAYINTERFACE_H
